package com.service.impl;

import com.common.PageUtils;
import com.dao.SysOperateLogDao;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.model.BlacklistModel;
import com.model.SysOperateLog;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author
 * @Description:
 * @date 2021/4/17 17:30
 */
@Slf4j
@Service
public class SysOperateLogService {

    @Autowired
    private SysOperateLogDao sysOperateLogDao;

    public PageInfo<SysOperateLog> logList(String name,Long id,String pageNo,Integer pageSize){
        PageHelper.startPage(PageUtils.initPage(pageNo), pageSize);
        List<SysOperateLog> list = sysOperateLogDao.logList(name,id);
        return new PageInfo<>(list);
    }
}
